package dao

import (
	"time"
)

// 这是 LiPurchaseOrder 的全局公开dao对象
var LiPurchaseOrderDao = liPurchaseOrderDao{}

// 这是 li_purchase_order表 的实体类
type LiPurchaseOrder struct {
	Id                     int       `json:"id" form:"id" v:"id"`                                                                      // ID
	CreateBy               string    `json:"create_by" form:"create_by" v:"create_by"`                                                 // 创建者
	CreateTime             time.Time `json:"create_time" form:"create_time" v:"create_time"`                                           // 创建时间
	DeleteFlag             bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"`                          // 删除标志 true/false 删除/未删除
	UpdateBy               string    `json:"update_by" form:"update_by" v:"update_by"`                                                 // 更新者
	UpdateTime             time.Time `json:"update_time" form:"update_time" v:"update_time"`                                           // 更新时间
	CategoryId             string    `json:"category_id" form:"category_id" v:"category_id"`                                           // 分类ID
	CategoryName           string    `json:"category_name" form:"category_name" v:"category_name"`                                     // 分类名称
	ConsigneeAddressIdPath string    `json:"consignee_address_id_path" form:"consignee_address_id_path" v:"consignee_address_id_path"` // 地址ID
	ConsigneeAddressPath   string    `json:"consignee_address_path" form:"consignee_address_path" v:"consignee_address_path"`          // 地址名称
	ContactNumber          string    `json:"contact_number" form:"contact_number" v:"contact_number"`                                  // 联系电话
	ContactType            string    `json:"contact_type" form:"contact_type" v:"contact_type"`                                        // 联系类型
	Contacts               string    `json:"contacts" form:"contacts" v:"contacts"`                                                    // 联系人
	Deadline               time.Time `json:"deadline" form:"deadline" v:"deadline"`                                                    // 截止时间
	MemberId               string    `json:"member_id" form:"member_id" v:"member_id"`                                                 // 供求人
	NeedReceipt            bool      `json:"need_receipt" form:"need_receipt" v:"need_receipt"`                                        // 是否需要发票
	PriceMethod            string    `json:"price_method" form:"price_method" v:"price_method"`                                        // 价格类型
	ReceiptTime            time.Time `json:"receipt_time" form:"receipt_time" v:"receipt_time"`                                        // 收货时间
	Status                 string    `json:"status" form:"status" v:"status"`                                                          // 状态
	Supplement             string    `json:"supplement" form:"supplement" v:"supplement"`                                              // 补充说明
	Title                  string    `json:"title" form:"title" v:"title"`                                                             // 标题

}

// 注意:这是 LiPurchaseOrder 的私有dao对象
type liPurchaseOrderDao struct {
	Insert func(arg LiPurchaseOrder) int             //插入一条记录
	Update func(arg LiPurchaseOrder) int             //更新一条记录
	Delete func(arg LiPurchaseOrder) int             //删除一条记录
	Select func(arg LiPurchaseOrder) LiPurchaseOrder //获取一条记录
}
